﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tommy
{
    public class Manager
    {
        Context context;
        Wizard wizard;
        Loader loader;
        Browser browser;
        

        
        public Manager()
        {
            context = new Context();
            wizard = new Wizard(ref context);
            loader = new Loader();
            browser = new Browser();
        }

        bool InitializeEventTable()
        {
           
            loader.InitializeEventTable();
            browser.InitializeEventTable();
            EventTable.InitActs();
            return true;
        }

        public void Run()
        {
            InitializeEventTable();
            EventTable.Act(ref context);
        }
    }
}
